package saxion.speelveld.spaceengineer.buildings;

import saxion.speelveld.spaceengineer.R;
import saxion.speelveld.spaceengineer.model.ProducingBuilding;
import saxion.speelveld.spaceengineer.model.Resource;
import saxion.speelveld.spaceengineer.model.ResourceType;

public class SpaceSchool extends ProducingBuilding
{

	public SpaceSchool()
	{
		super(3, 3);
		super.setBuildingName(SpaceSchool.this.getClass().getSimpleName());
		super.setBuildingExplanation("The Space School makes you're residents more intelligent and "
			+ "gives you a chance to discover new things.");
		super.resourceCosts.add(new Resource(ResourceType.MONEY, 400));
		super.resourceCosts.add(new Resource(ResourceType.ELECTRICITY, 30));
		super.resourceCosts.add(new Resource(ResourceType.WATER, 200));
		super.resourceCosts.add(new Resource(ResourceType.GLASS, 100));
		super.resourceCosts.add(new Resource(ResourceType.METAL, 200));

		super.addResourceProduceGain(new Resource(ResourceType.SCIENCEPOINTS, 2, true));
		super.addResourceProduceGain(new Resource(ResourceType.HAPPINESS, 1, false));

		// a la Mitchell
		// super.setResourcesProduced(ResourceType.SCIENCEPOINTS);
		// super.setProductioncapacity(1);

		super.resourceImages = new int[9];
		super.resourceImages[0] = R.drawable.spaceschool_0;
		super.resourceImages[1] = R.drawable.spaceschool_1;
		super.resourceImages[2] = R.drawable.spaceschool_2;
		super.resourceImages[3] = R.drawable.spaceschool_3;
		super.resourceImages[4] = R.drawable.spaceschool_4;
		super.resourceImages[5] = R.drawable.spaceschool_5;
		super.resourceImages[6] = R.drawable.spaceschool_6;
		super.resourceImages[7] = R.drawable.spaceschool_7;
		super.resourceImages[8] = R.drawable.spaceschool_8;
		super.setPreviewResourceImageId(R.drawable.spaceschool);
	}

	// @Override
	// public int produceGoods()
	// {
	// return 0;
	// }

}
